#ifndef UPDATECOUNTFORM_H
#define UPDATECOUNTFORM_H

#include "AttribBaseForm.h"
#include "toObject/ModelXml.h"
#include <QMap>
#include <QTreeWidgetItem>
#include <QWidget>
namespace Ui {
class UpdateChannelForm;
}

class UpdateChannelForm : public AttribBaseForm {
    Q_OBJECT

public:
    explicit UpdateChannelForm(QWidget* parent = nullptr);
    ~UpdateChannelForm();

protected:
    void InitUIData();
    void saveModel();
    void saveChanngeData();
    QWidget* GetProtocalConfigWidget();
private slots:
    void on_comboBox_2_currentIndexChanged(int index);

private:
    Ui::UpdateChannelForm* ui;
    QMap<QString, QWidget*> m_mapChilds;
    QTreeWidgetItem* m_currentItem;
    QWidget* m_pointWidget { nullptr };
    stUpdateChannel* m_updateChannel;
};

#endif // UPDATECOUNTFORM_H
